#ifndef DEBUGFORM_H
#define DEBUGFORM_H

#include <QWidget>
#include <QTimer>
#include "src/device/Handle/HandleHelper.h"

namespace Ui {
class DebugForm;
}

enum ConnectType{
    HD_NOT_CONNECT,
    HD_CONNECTTING,
    HD_CONNECTED
};

class DebugForm : public QWidget
{
    Q_OBJECT

public:
    explicit DebugForm(QWidget *parent = 0);
    ~DebugForm();

private slots:
    void on_send_P_B_clicked();

    void on_disConnect_clicked();

    void on_reCon_B_clicked();

    void on_UIsUpdate();

    void on_run_B_clicked();

    void on_cB_Select_activated(int index);

    void on_go_B_clicked();

    void on_comMax_activated(const QString &arg1);

    void on_zero_B_clicked();

private:
    Ui::DebugForm *ui;
    QTimer *updateUI;
    ConnectType currentType = HD_NOT_CONNECT;


    int curentAXis = 0;
    void initMembers();
    void initUIControls();
};

#endif // DEBUGFORM_H
